inverse by elementary transformation